<?php

namespace App\Repositories\Transformers;

use App\Models\CulturalHeritage;
use League\Fractal\TransformerAbstract;

class HomeCulturalHeritageTransformer extends TransformerAbstract
{
    public function transform(CulturalHeritage $culturalHeritage)
    {
        return [
            'id' => $culturalHeritage->id,
            'title' => $culturalHeritage->title,
            'cover' => $culturalHeritage->cover,
            'type' => $culturalHeritage->type,
            'level' => $culturalHeritage->level,
            'sort' => $culturalHeritage->sort,
            'is_home' => $culturalHeritage->is_home,
        ];
    }
}
